package com.cheetah.exceptions;

import lombok.Getter;

@Getter
public class CheetahRuntimeException extends RuntimeException {

    private String message;

    private int errorCode;

    public CheetahRuntimeException(){
        super();
    }

    public CheetahRuntimeException(Error error){
        super(error.getMessage());
        this.message = error.getMessage();
    }

    public CheetahRuntimeException(String message){
        super(message);
        this.message = message;
    }

    public CheetahRuntimeException(String message,int errorCode){
        super(message);
        this.message = message;
        this.errorCode = errorCode;
    }

    public CheetahRuntimeException(String message, Throwable cause) {
        super(message, cause);
        this.message = message;
    }

    public CheetahRuntimeException(String message, int errorCode,Throwable cause) {
        super(message, cause);
        this.message = message;
    }
}
